package com.spzx.user.api.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户地址表
 * </p>
 *
 * @author atguigu
 * @since 2024-11-18
 */
@Getter
@Setter
@TableName("user_address")
@Schema(description = "用户地址表")
public class UserAddress extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名")
    private String name;

    @Schema(description = "电话")
    private String phone;

    @Schema(description = "标签名称")
    private String tagName;

    @Schema(description = "省code")
    private String provinceCode;

    @Schema(description = "市code")
    private String cityCode;

    @Schema(description = "区code")
    private String districtCode;

    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "完整地址")
    private String fullAddress;

    @Schema(description = "是否默认地址（0：否 1：是）")
    private Integer isDefault;
}
